FROM rabbitmq:3.12.10-management-alpine

# 加入延迟队列插件, 注意和上面版本对应, 插件路径与 Dockerfile 路径一致, 可以自行修改
ADD ./rabbitmq_delayed_message_exchange-3.12.0.ez /plugins
RUN rabbitmq-plugins enable rabbitmq_delayed_message_exchange rabbitmq_mqtt rabbitmq_web_mqtt

ENTRYPOINT ["rabbitmq-server"]